package com.springmvc.controller;

import com.springmvc.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

    @RequestMapping("/register")
    public String register(){
        return "register";
    }

    @RequestMapping("/converter/register")
    public String register(User user){
        System.out.println("user--->"+user);
        return "success";
    }

}
